package com.zlsy.es.dianping.base;

/**
 * @author zhouliang
 * @date 2020/2/29 0:27
 */
public enum ResultCodeEnum implements ErrorBase {
    /**
     * 成功返回固定格式
     */
    SUCCESS(0, "", "success"),
    ERROR(-1, "", "fail");

    private Integer errCode;
    private String errMsg;
    private String status;

    ResultCodeEnum(Integer errCode, String errMsg, String status) {
        setErrCode(errCode);
        setErrMsg(errMsg);
        setStaatus(status);
    }

    @Override
    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    @Override
    public String getStatus() {
        return status;
    }

    public void setStaatus(String status) {
        this.status = status;
    }
}
